<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib.override">

  <require>org.nuxeo.ecm.platform.notification.document.routing.NotificationContrib</require>

  <extension point="notifications" target="org.nuxeo.ecm.platform.ec.notification.service.NotificationService">

    <notification enabled="false" name="Task assigned">
      <event name="workflowTaskAssigned"/>
    </notification>
    <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Task assigned" subject="Task Assigned for ${docTitle}" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')">
      <event name="workflowTaskAssigned"/>
    </notification>

   <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Task reassigned" subject="Task Reassigned on ${docTitle}" template="workflowTaskAssigned" templateExpr="NotificationContext['taskInstance'].getVariable('taskNotificationTemplate')">
      <event name="workflowTaskReassigned"/>
    </notification>

   <notification autoSubscribed="true" availableIn="Workspace" channel="email" enabled="true" label="label.nuxeo.notifications.appReviewStarted" name="Task delegated" subject="Task Delegated on ${docTitle}" template="workflowTaskDelegated">
      <event name="workflowTaskDelegated"/>
    </notification>

  </extension>

</component>
